#! /bin/sh

if [ x$1 = x"up" ]; then
    xbacklight -inc 10
elif [ x$1 = x"down" ]; then
    xbacklight -dec 10
fi

BRIGHT=$(xbacklight -get)
BRIGHT="bright/${BRIGHT%.*}%"

/home/linux/.config/my-dwm-scripts/update-status.sh "$BRIGHT"
